// Never Gonna Give You Up ~

//freopen("duel.in","w",stdin);
//freopen("duel.out","r",stdout);
//freopen("duel.ans","w",stdout);

/*
#include<cmath>
#define int long long
int x1,y1,x2,y2;
*/

// Key Words =w=

/*

AFO, LOVE, CCF, Solution, ... ...

How to input Chinese ???

666

Minecraft Surver: mc.163mc.cn

Guess my Luogu uid. 527598.

Fira Code ???

wo yao da zhong wen . ren ji

    ========
    |--==--|
 |-|========|-|
================
|--------------|
|- 2024.10.26 -|
|--Afternoon!--|
|---11:45:14---|
|------/\------|
|------||------|
|------||------|
|---Now Time---|
|--------------|
|--Powered by--|
|-----@NOI CCF-|
================
*/

//Password Z*L#LH%9 (JS-NJ)
//ta de % gei de shi quan jiao dao zhi da jia da bu kai ti mu fei chang chou xiang

//chu san le zhen tui yi le LOL

//LLLLLLLL sz

#include<bits/stdc++.h>
#define N 100005
using namespace std;
int n,a[N];
signed main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    cin>>n;
    for(int i=1;i<=n;i++) cin>>a[i];
    sort(a+1,a+n+1);
    queue<int> alv;
    alv.push(a[1]);
    for(int i=2;i<=n;i++){
        if(alv.empty()){
            alv.push(a[i]);
            continue;
        }
        int u=alv.front();
        if(u<a[i]) alv.pop();
        alv.push(a[i]);
    }
    cout<<alv.size();
    return 0;
}

// g++ duel.cpp -o exe -std=c++14 -O2 -Wall -Wextra -fsanitize=address,undefined

// 14:44 Problem 'Duel' passed all examples. 100+0+0+0=100